<!-- jsp指令：page/taglib/include -->
<%@ page language="java" pageEncoding="utf-8"%>
<!-- 引入标签库：JSTL-c标签 核心标签-->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 引入标签库：JSTL-fmt标签 格式化标签 -->
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="asserts/bootstrap-3.3.7-dist/css/bootstrap.min.css"/>
		<link rel="stylesheet" href="asserts/font-awesome-4.7.0/css/font-awesome.min.css" />
		<link rel="stylesheet" href="css/main.css">
	</head>
	<body>
		<!-- header -->
		<div class="header navbar navbar-default">
			<div class="container-fluid">
				<div class="navbar-header">
					<a class="navbar-brand" href="#">
						易书博客后台管理系统
					</a>
				</div>
				
				<ul class="nav navbar-nav navbar-right">
					<li>
						<a href="javascript:logout()"><span class="glyphicon glyphicon-log-out">&nbsp;</span>安全退出</a>
					</li>
				</ul>
				
				<form class="navbar-form navbar-right" role="search">
				  <div class="form-group">
					<input type="text" class="form-control" placeholder="关键字">
				  </div>
				  <button type="submit" class="btn btn-default">
					  <span class="glyphicon glyphicon-search"></span>
				  </button>
				</form>		
								
			</div>
		</div>
		<!-- header end -->
		
		<div class="body">
			<!-- 侧边栏 -->
			<div class="left">
				<!-- 用户信息 -->
				<div class="user-info">
					<div class="info-icon">
						<img src="${user.hicon}" width="80px" height="80px" class="img-circle" alt="">
					</div>
					<div class="info-name">${user.nickname}</div> 
				</div>
				<!-- 菜单 -->
				<div class="list-group text-center">
					<a href="main.jsp" class="list-group-item active"><i class="fa fa-dashboard"></i> 仪表盘</a>
					<a href="banner?method=findAll" class="list-group-item"><i class="fa fa-file-image-o"></i> 轮播管理</a>
					<a href="article?method=findAll" class="list-group-item"><i class="fa fa-file-text-o"></i> 博客管理</a>
					<a href="category?method=findAll" class="list-group-item"><i class="fa fa-bars"></i> 类别管理</a>
					<a href="tag?method=findAll" class="list-group-item"><i class="fa fa-tags"></i> 标签管理</a>
					<a href="comment.jsp" class="list-group-item"><i class="fa fa-comment"></i> 留言管理</a>
					<a href="link?method=findAll" class="list-group-item"><i class="fa fa-chain"></i> 友情链接</a>
					<a href="ad.jsp" class="list-group-item"><i class="fa fa-rmb"></i> 广告管理</a>
					<a href="settings.jsp" class="list-group-item"><i class="fa fa-gear"></i> 个人设置</a>
				</div>
				<div class="copy">Design by MRChai &copy; 软帝集团 版权所有</div>
			</div>
			
			<!-- 内容展示区 -->
			<div class="right">
				<ol class="breadcrumb">
					<li><i class="fa fa-dashboard"></i> 仪表盘</li>
				</ol>
				<div class="container-fluid">
					<blockquote>
						信息总览
					</blockquote>
					<!-- 统计信息 -->
					<div class="count">
						<div class="count-item">
							<span class="fa fa-user fa-2x"></span><br>
							管理员<br>
							<span class="number">${info.userCount}人</span>
						</div>
						<div class="count-item">
							<span class="fa fa-file fa-2x"></span><br>
							文章<br>
							<span class="number">${info.articleCount}篇</span>
						</div>
						<div class="count-item">
							<span class="fa fa-comment  fa-2x"></span><br>
							留言<br>
							<span class="number">${info.messageCount}条</span>
						</div>
						<div class="count-item">
							<span class="fa fa-list fa-2x"></span><br>
							类别<br>
							<span class="number">${info.categoryCount}个</span>
						</div>
						<div class="count-item">
							<span class="fa fa-comment fa-2x"></span><br>
							评论<br>
							<span class="number">${info.commentCount}条</span>
						</div>
						<div class="count-item">
							<span class="fa fa-chain fa-2x"></span><br>
							友情链接<br>
							<span class="number">${info.linkCount}个</span>
						</div>
						<div class="count-item">
							<span class="fa fa-rmb fa-2x"></span><br>
							广告<br>
							<span class="number">${info.adCount}条</span>
						</div>
						<div class="count-item">
							<span class="fa fa-eye fa-2x"></span><br>
							访问量<br>
							<span class="number">${info.pvCount}次</span>
						</div>
					</div><!-- 统计信息end -->
					<blockquote>
						登录信息
					</blockquote>
					<!-- 系统信息 -->
					<div class="stat">
						<table class="table table-striped">
							<tr>
								<td>登录人:</td>
								<td>${user.username}</td>
								<td>登录次数:</td>
								<td>${user.logincount}</td>
							</tr>
							<tr>
								<td>上次登录时间:</td>
								<td>
									<fmt:formatDate value="${user.lastlogin}" pattern="yyyy年MM月dd日 HH时mm分ss秒"/>
								</td> 
								<td>本次登录时间:</td>
								<td>
									<fmt:formatDate value="${user.nowlogin}" pattern="yyyy年MM月dd日 HH时mm分ss秒"/>
								</td>
							</tr>
							<tr>
								<td>上次登录IP:</td>
								<td>${user.lastip }</td>
								<td>本次登录IP:</td>
								<td>${user.nowip }</td>
							</tr>
						</table>
					</div><!-- 系统信息end -->
				</div>
			</div>
		</div>
		
		
		<script src="js/jquery-3.2.1.min.js"></script>
		<script src="asserts/layer/layer.js"></script>
		<script src="js/comm.js"></script>
	</body>
</html>
